# -*- coding: utf-8 -*-
### Access information
USERNAME = ''
PASSWORD = ''
AUYH_KEY = ''

#SITE_URL='http://forum.exler.ru/'
SITE_URL='http://club443.ru/'
FORUMLIST_URL= SITE_URL + 'ib_client/cltp2z01.php?forumlist=1'
THREADLIST_URL= SITE_URL + 'ib_client/cltp2z01.php?forum=%s&tlimit=100'
POSTLIST_URL= SITE_URL + 'ib_client/cltp2z01.php?thread=%s&llimit=65530'
POSTS_URL= SITE_URL + 'ib_client/cltp6z02.php?mpost=%s&backlimit=%d'
LOGIN_URL = SITE_URL + 'index.php?act=Login&CODE=01'
LOGOUT_URL = SITE_URL + 'index.php?act=Login&CODE=03'
FINDUSER_URL= SITE_URL + 'ib_client/cltp3z01.php?pa=finduser&user=%s'

MAILDIR = 'FER_MAILDIR'
DATABASE = 'db/fer.db'
FORUM_CACHE = 'db/_forum_cache.db'

# Form fields (maybe not needed)
USERNAME_FIELD = 'UserName'
PASS_FIELD = 'PassWord'
COOKIEDATE = 1
LOGIN_VALUES = {USERNAME_FIELD : USERNAME,
                                PASS_FIELD : PASSWORD,
                                'CookieDate': COOKIEDATE}

FORUM_ENCODING = 'cp1251'

AUTHOR = 'fvk'
APP_NAME = 'FER Fetcher'

# TODO: get upperlevel forums from ib api
UL_THREADS = {59: u'Форумная болтология',
                      36: u'Обсуждения',
                      67: u'Кино, ТВ, видео',
                      60: u'Культура и искусство',
                      64: u'Взаимоотношения, семья и дом',
                      65: u'Компьютеры и цифровая техника',
                      24: u'Сайт и форум Exler.ru',
                      61: u'I don\'t know'}

READ_PJ = True
RESTORE_OPENED_THREADS = True

TOP_LEVEL, FORUM, THREAD, POST = range(4)
UPDATE_ALL, UPDATE_SELECTED, UPDATE_UNSELECTED = range(3)

CHECKED_ITEM_BGCOLOR = 152, 251, 152
DATE_TIME_FORMAT = "%Y-%m-%d %H:%M"
HTML_ZOOM_FACTOR = 1.5
FixedFont = 'monospace'
StandardFont = 'Arial'

